import { da } from 'element-plus/es/locales.mjs';
import http from '../util/http.js';

 const API={
    get: (url,params) => http({url:url , method:'get',params:params}),
    del:(url,data)=>{
        url = url + data;
        return http({url:url , method:'delete'})
    },
    edit:(url,params)=>http({url:url,method: 'put',params:params}),
    add:(url , data)=>http({url:url,method:'post',data:data})


};

export default API;